package projects.jnurse.ioc.core.reflection;

import java.util.Map;
import java.util.HashMap;

/**
 * Created by Adil Naji.
 * User: XP-170708
 * Date: 18 nov. 2008
 * Time: 21:36:57
 */
public class AnnotationResult<T> {

    T subject;
    //A annotation;
    Map<String, Object> attrValue;

    public Object getAttributeValue(String attr) {
        return attrValue.get(attr);
    }

    public AnnotationResult(T subject) {

        this.subject = subject;
        //this.annotation = annotation;

    }

    public void addAttribute(String attribut, Object value) {
        if (attrValue == null)
            attrValue = new HashMap<String, Object>();
        attrValue.put(attribut, value);
    }

}
